package mylibrary.thread;

public class TestRunnable {

	public static void main(String[] args) throws InterruptedException {
		DoSomething ds1 = new DoSomething("张三");
		DoSomething ds2 = new DoSomething("李四");
		
		Thread t1 = new Thread(ds1);
		Thread t2 = new Thread(ds2);
		
		t1.setPriority(Thread.MAX_PRIORITY);
		t1.start();	
		t2.start();
		
//		t1.join();
//		t2.join();
		
		for(int i = 0; i < 100; i++) {
			System.out.println("In main");
			Thread.sleep(10);
		}
 	}
}
